DEV3-4782: Generalize GitHub Action to support custom prompts and comment prefixes#29
Merged
Pavel-tabnine merged 9 commits intomainfrom Apr 29, 2026
Merged
Conversation
…ment prefixes - Add prompt_override input to replace the default code review prompt - Add step_name input to customize the agent step display name - Add comment_prefix input to isolate bot comments per action invocation - Generalize action name/description to 'Tabnine PR Agent' - Harden jq cleanup filter using env.COMMENT_PREFIX instead of interpolation - Thread comment_prefix through all references in the default prompt
sthuck
approved these changes
Apr 16, 2026
…rompt Move inline (PR review) comment cleanup from the AI prompt (Phase B) into the deterministic shell step that already handles summary comments. This ensures reliable cleanup regardless of agent behavior. Re-letter phases B→B, C→B2/B3/B4, D→C, E→D to fill the gap.
…action-inputs # Conflicts: # action.yml
…rkflows Same pattern as the GitHub action: move inline comment cleanup from the AI prompt into the deterministic shell step. Re-letter phases accordingly. GitLab: add Discussions API cleanup for inline notes. Bitbucket: existing cleanup already covers both comment types.
Remove Phase B from prompt, fix DELETE endpoint for review comments (was /issues/comments, now /pulls/comments), re-letter phases.
…t override, and cleanup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Make the tabnine-pr-agent GitHub Action generic so it can be used for any Tabnine CLI Agent task, not just code review.
Changes
prompt_overrideinput to replace the default code review prompt with a custom onestep_nameinput to customize the agent step display namecomment_prefixinput to isolate bot comments per action invocation (used for cleanup)env.COMMENT_PREFIXcomment_prefixthrough all hardcoded references in the default prompt to keep cleanup and comment posting in syncAll new inputs are optional with backward-compatible defaults — existing consumers require zero changes.
Jira
DEV3-4782